home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
cool
/
ge_cool.lha
/
GE_COOL2.1
/
cpp
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-07-13
|
6KB
|
144 lines
#
# Copyright (C) 1990 Texas Instruments Incorporated.
#
# Permission is granted to any individual or institution to use, copy, modify,
# and distribute this software, provided that this complete copyright and
# permission notice is maintained, intact, in all copies and supporting
# documentation.
#
# Texas Instruments Incorporated provides this software "as is" without
# express or implied warranty.
#
#
# For a cpp without defmacro extensions use the following definitions.
#
# CPPFLAGS =
# SOURCES = cpp1.c cpp2.c cpp3.c cpp4.c cpp5.c cpp6.c
#
include ../Makedefs
CC = cc
CFLAGS = -c -O
CPPFLAGS = -DCOOL
.SUFFIXES: .c .o
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $*.c
HEADERS = cpp.h cppdef.h defmacio.h macro.h
SOURCES = cpp1.c cpp2.c cpp3.c cpp4.c cpp5.c cpp6.c cpp7.c \
defmacio.c hash.c defpackage.c parmtype.c macro.c \
member.c class.c template.c exception.c typecase.c \
generate.c compress.c
TEMPLATES =
OBJECTS = $(SOURCES:.c=.o)
PROGRAM = cpp
$(PROGRAM): $(OBJECTS)
$(CC) -o $(PROGRAM) $(OBJECTS)
all: $(PROGRAM)
allclean clean:
$(RM) $(BACKUPS) $(OBJECTS) $(PROGRAM)
alldepend depend: $(HEADERS) $(SOURCES)
$(MKDEPEND) $(DEFINES) $(INCLUDES) $(HEADERS) $(SOURCES)
alllink link:
allinstall install: $(PROGRAM)
$(COPY) $(PROGRAM) $(BINDIR)/$(PROGRAM)
#
# ** Test cpp by preprocessing itself, compiling the result,
# ** repeating the process and diff'ing the result. Note: this
# ** is not a good test of cpp, but a simple verification.
# ** The diff's should not report any changes.
#
test: $(PROGRAM)
for FILE in $(SOURCES) ; do \
./$(PROGRAM) $(CPPFLAGS) $$FILE > t_$$FILE ; done
$(CC) $(CPPFLAGS) $(CFLAGS) t_*.c
for FILE in $(SOURCES) ; do \
./a.out $(CPPFLAGS) $$FILE > tt_$$FILE ; done
for FILE in $(SOURCES) ; do \
diff t_$$FILE tt_$$FILE ; done
$(RM) t_* tt_* a.out
# DO NOT DELETE THIS LINE -- make depend depends on it.
cpp.o: cppdef.h
defmacio.o: /usr/lang/SC1.0/include/CC/ctype.h
defmacio.o: /usr/lang/SC1.0/include/CC/c_varieties.h
defmacio.o: /usr/lang/SC1.0/include/CC/stdio.h
cpp1.o: /usr/lang/SC1.0/include/CC/stdio.h
cpp1.o: /usr/lang/SC1.0/include/CC/c_varieties.h
cpp1.o: /usr/lang/SC1.0/include/CC/ctype.h cppdef.h cpp.h
cpp2.o: /usr/lang/SC1.0/include/CC/stdio.h
cpp2.o: /usr/lang/SC1.0/include/CC/c_varieties.h
cpp2.o: /usr/lang/SC1.0/include/CC/ctype.h cppdef.h cpp.h
cpp3.o: /usr/lang/SC1.0/include/CC/stdio.h
cpp3.o: /usr/lang/SC1.0/include/CC/c_varieties.h
cpp3.o: /usr/lang/SC1.0/include/CC/ctype.h /usr/lang/SC1.0/include/CC/time.h
cpp3.o: /usr/lang/SC1.0/include/CC/sys/types.h
cpp3.o: /usr/lang/SC1.0/include/CC/sys/stdtypes.h
cpp3.o: /usr/lang/SC1.0/include/CC/sys/sysmacros.h cppdef.h cpp.h
cpp4.o: /usr/lang/SC1.0/include/CC/stdio.h
cpp4.o: /usr/lang/SC1.0/include/CC/c_varieties.h
cpp4.o: /usr/lang/SC1.0/include/CC/ctype.h cppdef.h cpp.h
cpp5.o: /usr/lang/SC1.0/include/CC/stdio.h
cpp5.o: /usr/lang/SC1.0/include/CC/c_varieties.h
cpp5.o: /usr/lang/SC1.0/include/CC/ctype.h cppdef.h cpp.h
cpp6.o: /usr/lang/SC1.0/include/CC/stdio.h
cpp6.o: /usr/lang/SC1.0/include/CC/c_varieties.h
cpp6.o: /usr/lang/SC1.0/include/CC/ctype.h cppdef.h cpp.h
cpp7.o: /usr/lang/SC1.0/include/CC/stdio.h
cpp7.o: /usr/lang/SC1.0/include/CC/c_varieties.h
cpp7.o: /usr/lang/SC1.0/include/CC/ctype.h cppdef.h cpp.h
cpp7.o: /usr/lang/SC1.0/include/CC/sys/file.h
cpp7.o: /usr/lang/SC1.0/include/CC/sys/types.h
cpp7.o: /usr/lang/SC1.0/include/CC/sys/stdtypes.h
cpp7.o: /usr/lang/SC1.0/include/CC/sys/sysmacros.h
cpp7.o: /usr/lang/SC1.0/include/CC/sys/fcntlcom.h
cpp7.o: /usr/lang/SC1.0/include/CC/sys/stat.h
defmacio.o: defmacio.h /usr/lang/SC1.0/include/CC/ctype.h
defmacio.o: /usr/lang/SC1.0/include/CC/c_varieties.h
defmacio.o: /usr/lang/SC1.0/include/CC/stdio.h
hash.o: defmacio.h /usr/lang/SC1.0/include/CC/ctype.h
hash.o: /usr/lang/SC1.0/include/CC/c_varieties.h
hash.o: /usr/lang/SC1.0/include/CC/stdio.h
defpackage.o: defmacio.h /usr/lang/SC1.0/include/CC/ctype.h
defpackage.o: /usr/lang/SC1.0/include/CC/c_varieties.h
defpackage.o: /usr/lang/SC1.0/include/CC/stdio.h
parmtype.o: defmacio.h /usr/lang/SC1.0/include/CC/ctype.h
parmtype.o: /usr/lang/SC1.0/include/CC/c_varieties.h
parmtype.o: /usr/lang/SC1.0/include/CC/stdio.h
macro.o: defmacio.h /usr/lang/SC1.0/include/CC/ctype.h
macro.o: /usr/lang/SC1.0/include/CC/c_varieties.h
macro.o: /usr/lang/SC1.0/include/CC/stdio.h macro.h
member.o: defmacio.h /usr/lang/SC1.0/include/CC/ctype.h
member.o: /usr/lang/SC1.0/include/CC/c_varieties.h
member.o: /usr/lang/SC1.0/include/CC/stdio.h
class.o: defmacio.h /usr/lang/SC1.0/include/CC/ctype.h
class.o: /usr/lang/SC1.0/include/CC/c_varieties.h
class.o: /usr/lang/SC1.0/include/CC/stdio.h macro.h
template.o: macro.h defmacio.h /usr/lang/SC1.0/include/CC/ctype.h
template.o: /usr/lang/SC1.0/include/CC/c_varieties.h
template.o: /usr/lang/SC1.0/include/CC/stdio.h cppdef.h
exception.o: defmacio.h /usr/lang/SC1.0/include/CC/ctype.h
exception.o: /usr/lang/SC1.0/include/CC/c_varieties.h
exception.o: /usr/lang/SC1.0/include/CC/stdio.h macro.h
typecase.o: defmacio.h /usr/lang/SC1.0/include/CC/ctype.h
typecase.o: /usr/lang/SC1.0/include/CC/c_varieties.h
typecase.o: /usr/lang/SC1.0/include/CC/stdio.h
generate.o: defmacio.h /usr/lang/SC1.0/include/CC/ctype.h
generate.o: /usr/lang/SC1.0/include/CC/c_varieties.h
generate.o: /usr/lang/SC1.0/include/CC/stdio.h macro.h
compress.o: defmacio.h /usr/lang/SC1.0/include/CC/ctype.h
compress.o: /usr/lang/SC1.0/include/CC/c_varieties.h
compress.o: /usr/lang/SC1.0/include/CC/stdio.h